d = "hubei"
new_d = d[-1] + d[1:-1] + d[0]
print(new_d)
d = "student"
new_d = d[-1] + d[1:-1] + d[0]
print(new_d)